<aside>
    <div class="avatar">
        <a href="#"><span>青轻飞扬</span></a>
    </div>
    <section class="topspaceinfo">
        <h1>执子之手，与子偕老</h1>
        <p>于千万人之中，我遇见了我所遇见的人....</p>
    </section>
    <div class="userinfo">
        @if(!empty(session('userid')))
            {{--<p class="q-fans"> 粉丝：<a href="/">167</a></p>--}}
        @endif
        <div style="text-align:center;margin:0 auto;">
            <a href="/">列表</a>
            <a href="/photos">相册</a>
            <a href="/photos/create">上传</a>
            <a href="/create">存档</a>
            {{--<a href="/">私信</a>--}}
        </div>
    </div>
    <section class="newpic">
        <h2>最新照片</h2>
        <ul>
            <?php $photo = session('photo')?>
            @foreach($photo as $k=>$v)
                <li><a href="/photos"><img src="{{$v['url']}}"></a></li>
            @endforeach
        </ul>
    </section>
    <section class="taglist">
        <h2>全部标签</h2>
        <ul>
            <?php $classify = session('classify')?>
            @foreach($classify as $k=>$v)
                <div>
                    <a style="font-size: 18px;margin-right: 10px"
                       href="/?content={{$v['name']}}">{{$v['name']}}</a><span
                            style="color: #e48d8d">{{$v['number']}}</span>
                </div>
            @endforeach
        </ul>
    </section>
</aside>
<aside style="float: right">
    <section class="newpic" style="margin-top: 60px">
        <h2>在线工具</h2>
        <ul>
            <?php $onlietool = session('onlietool')?>
            @foreach($onlietool as $k=>$v)
                <div><a href="{{$v['url']}}" target="_blank">{{$v['name']}}</a></div>
            @endforeach
        </ul>
    </section>
    <section class="newpic" style="margin-top: 5px">
        <h2>文档地址</h2>
        <ul>
            <?php $address = session('address')?>
            @foreach($address as $k=>$v)
                <div><a href="{{$v['url']}}" target="_blank">{{$v['name']}}</a></div>
            @endforeach
        </ul>
    </section>
    <section class="newpic" style="margin-top: 5px">
        <h2>其他</h2>
        <ul>
            <?php $other = session('other')?>
            @foreach($other as $k=>$v)
                <div><a href="{{$v['url']}}" target="_blank">{{$v['name']}}</a></div>
            @endforeach
        </ul>
    </section>
</aside>